/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightAdjustCompensation;
import com.sasis.dao.FlightAdjustCompensationDao;
import com.sasis.service.FlightAdjustCompensationManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightAdjustCompensationManagerImpl extends BaseManager implements FlightAdjustCompensationManager {
    private FlightAdjustCompensationDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightAdjustCompensationDao(FlightAdjustCompensationDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightAdjustCompensationManager#getFlightAdjustCompensations(com.sasis.model.FlightAdjustCompensation)
     */
    public List getFlightAdjustCompensations(final FlightAdjustCompensation flightAdjustCompensation) {
        return dao.getFlightAdjustCompensations(flightAdjustCompensation);
    }

    /**
     * @see com.sasis.service.FlightAdjustCompensationManager#getFlightAdjustCompensation(String id)
     */
    public FlightAdjustCompensation getFlightAdjustCompensation(final String id) {
        return dao.getFlightAdjustCompensation(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightAdjustCompensationManager#saveFlightAdjustCompensation(FlightAdjustCompensation flightAdjustCompensation)
     */
    public int saveFlightAdjustCompensation(FlightAdjustCompensation flightAdjustCompensation) {
       return dao.saveFlightAdjustCompensation(flightAdjustCompensation);
    }

    /**
     * @see com.sasis.service.FlightAdjustCompensationManager#removeFlightAdjustCompensation(String id)
     */
    public void removeFlightAdjustCompensation(FlightAdjustCompensation flightAdjustCompensation) {
        dao.removeFlightAdjustCompensation( flightAdjustCompensation);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
